package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Friend;
import cn.wolfcode.trip.base.query.FriendQueryObject;

import java.util.List;

public interface FriendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Friend record);

    Friend selectByPrimaryKey(Long id);

    List<Friend> selectAll();

    int updateByPrimaryKey(Friend record);

    /**
     * 根据id查询全部好友
     * @param qo
     * @return
     */
    List selectForListByUser(FriendQueryObject qo);
}